﻿#ifndef CTOOLS_H
#define CTOOLS_H

#include <QObject>
#include <QFileDialog>
#include <QDateTime>
#include "windows.h"
#include <QTextStream>
#include <QDebug>

// 给qml调用的接口
class CTools : public QObject
{
    Q_OBJECT
public:
    CTools();

    Q_INVOKABLE void exitProgram();

    Q_INVOKABLE QString fileDialog_saveFile(QString typeStr, QString defaultName = "");
    Q_INVOKABLE QString fileDialog_openFile(QString typeStr, QString defaultName = "");
    Q_INVOKABLE double readDp();

};

#endif // CTOOLS_H
